(function(){
    'use strict';
    const $registerForm = $('#registerForm');
    $registerForm.on('submit', function () {
        let data = $(this).serializeArray();
        $.post('/register/in', data, function (res) {
            if (res && res.errno === 0) {
                alert('注册成功')
            }else {
                alert(res.message)
            }
        }, 'json');
        return false
    });
})();